#!/bin/bash

DOLLS="accountsrv battlesrv configsrv dbsrv gamesrv gmproxysrv managesrv msdksrv ranksrv routersrv sandboxsrv smssrv tbattlesrv uidsrv wordsfiltersrv"

cd TARS_PATH/tarsnode/data/

for var in ${DOLLS};
do
  echo "stop ${var}"
  ps x -o pid,user,cmd | grep ${var} | awk -F' ' '{print $1}' | xargs -L 1 kill -9
done
